
#import "SEGSubMessageModel.h"
@implementation SEGSubMessageModel
- (instancetype)initWithDictionary:(NSDictionary*)dictionary
{
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dictionary];
    }
    return self;
}
-(instancetype)init
{
    self = [super init];
    if (self) {
        _userId = @"";
        _content = @"";
        _title = @"";
        _picture = @"";
        _objectId = @"";
        _type = @"";
        _url = @"";
        _templateName = @"";
        _organId = @"";
    }
    return self;
}
+ (instancetype)initWithDictionary:(NSDictionary*)dictionary
{
    return [[self alloc] initWithDictionary:dictionary];
}
- (void)setValue:(id)value forUndefinedKey:(NSString*)key
{}
- (void)setUserId:(NSString*)userId{
    _userId = [[SEGUtils ValueToString:userId]copy];
}
- (void)setContent:(NSString*)content{
    _content = [[SEGUtils ValueToString:content]copy];
}
- (void)setTitle:(NSString*)title{
    _title = [[SEGUtils ValueToString:title]copy];
}
- (void)setPicture:(NSString*)picture{
    _picture = [[SEGUtils ValueToString:picture]copy];
}
- (void)setObjectId:(NSString*)objectId{
    _objectId = [[SEGUtils ValueToString:objectId]copy];
}
- (void)setType:(NSString*)type{
    _type = [[SEGUtils ValueToString:type]copy];
}
- (void)setUrl:(NSString*)url{
    _url = [[SEGUtils ValueToString:url]copy];
}
- (void)setTemplateName:(NSString *)templateName{
    _templateName = [[SEGUtils ValueToString:templateName] copy];
}
- (void)setOrganId:(NSString *)organId
{
    _organId = [[SEGUtils ValueToString:organId] copy];
}
@end
